﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.WareHouse.Infrastructure.Dto.OutPut
{
    public class WareHouseOut
    {
        /// <summary>
        /// 仓库编号主键
        /// </summary>
        public long WHId { get; set; }

        /// <summary>
        /// 仓库编号
        /// </summary>
        [Description("仓库编号")]
        [Required(ErrorMessage = "仓库编号不能为空！")]
        public string Warehouseid { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        [Description("仓库名称")]
        [Required(ErrorMessage = "仓库名称不能为空！")]
        public string Warehousename { get; set; }

        ///// <summary>
        ///// 仓库类型
        ///// </summary>
        //[Description("仓库类型")]
        //[Required(ErrorMessage = "仓库类型不能为空！")]
        //public string Warehousetype { get; set; }

        /// <summary>
        /// 仓管员
        /// </summary>
        [Description("仓管员")]
        [Required(ErrorMessage = "仓管员不能为空！")]
        public string Warehouseempid { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string? Address { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string? Memo { get; set; }


        /// <summary>
        /// 人员编号
        /// </summary>
        public string EMPID { get; set; }

        /// <summary>
        /// 人员名称
        /// </summary>
        public string EMPName { get; set; }

        /// <summary>
        /// 仓库类型编码
        /// </summary>
        public string WHTypeId { get; set; }

        /// <summary>
        /// 仓库类型名称
        /// </summary>
        public string WHTypeName { get; set; }

        /// <summary>
        /// 创建人，可以为空
        /// </summary>
        public string? CreatedBy { get; set; }

        /// <summary>
        /// 创建时间，默认为当前系统时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 更新时间，默认为当前系统时间
        /// </summary>
        public DateTime UpdatedTime { get; set; }

        /// <summary>
        ///逻辑删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;

        /// <summary>
        ///是否启用
        /// </summary>
        public bool IsEnable { get; set; } = true;
    }
}
